//
//  WPMoreDetailVC.m
//  wobingwoyi
//
//  Created by WGP on 16/9/8.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "WPMoreDetailVC.h"
#import "WPMaleCaseCVC.h"
#import "WPFemaleCaseCVC.h"
#import "WPManDiseaseModel.h"
#import "WPDiseaseTypesVC.h"
#import "WPNewMaleCaseCellTwo.h"
#import "WPMoreDetailCell.h"
#import "WPMoreDetailMaleVC.h"
#import "WPMoreDetailFemaleVC.h"
#import "WPMoreDetailkidVC.h"
#import "WPBodyPartDiseaseModel.h"

#define kHeightScale ((SCREEN_HEIGHT-107)/560)
#define kWidthScale (self.view.frame.size.width/375)
@interface WPMoreDetailVC ()<UICollectionViewDelegate,UICollectionViewDataSource>

@property(nonatomic,strong)UIView *navBarView;
@property(nonatomic,strong)UIView *statusBarView;
@property(nonatomic,strong)UILabel *titleLabel;
@property(nonatomic,strong)UIButton *backBtn;

@property(nonatomic,strong)UIView *titleView;

@property(nonatomic,strong)WPBtnNoHighLight *maleCase;
@property(nonatomic,strong)WPBtnNoHighLight *femaleCase;
@property(nonatomic,strong)WPBtnNoHighLight *kidCase;

@property(nonatomic,strong)UICollectionView *collectionView;
@property(nonatomic,strong)UIView *sliderView;
@property(nonatomic,strong)WPBtnNoHighLight *currentBtn;
@property(nonatomic,assign)CGFloat averageWidth;
@property(nonatomic,strong)NSMutableArray *models;
@property(nonatomic,strong)WPMaleCaseCVC *manCell;
@property(nonatomic,strong)WPFemaleCaseCVC *femaleCell;

@property(nonatomic,strong)NSArray *MaleFirstPositiveModelArr;
@property(nonatomic,strong)NSArray *MaleFirstOppositeModelArr;
@property(nonatomic,strong)NSArray *MaleSecondPositiveModelArr;
@property(nonatomic,strong)NSArray *MaleSecondOppositeModelArr;
@property(nonatomic,strong)NSArray *MaleThirdPositiveModelArr;
@property(nonatomic,strong)NSArray *MaleFourthPositiveModelArr;
@property(nonatomic,strong)NSArray *MaleFifthPositiveModelArr;
@property(nonatomic,strong)NSArray *MaleSixthModelArr;
@property(nonatomic,strong)NSArray *MaleSevenModelArr;
@property(nonatomic,strong)NSArray *MaleEightModelArr;

@property(nonatomic,strong)NSArray *femaleFirstPositiveModelArr;
@property(nonatomic,strong)NSArray *femaleFirstOppositeModelArr;
@property(nonatomic,strong)NSArray *femaleSecondPositiveModelArr;
@property(nonatomic,strong)NSArray *femaleSecondOppositeModelArr;
@property(nonatomic,strong)NSArray *femaleThirdPositiveModelArr;
@property(nonatomic,strong)NSArray *femaleFourthPositiveModelArr;
@property(nonatomic,strong)NSArray *femaleFifthPositiveModelArr;
@property(nonatomic,strong)NSArray *kidArr;

@end

@implementation WPMoreDetailVC

#pragma mark - 懒加载
-(UIView *)statusBarView
{
    if (_statusBarView == nil)
    {
        _statusBarView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 20)];
        _statusBarView.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:_statusBarView];
        
    }
    return _statusBarView;
}

-(UIView *)navBarView
{
    if (_navBarView == nil)
    {
        _navBarView = [[UIView alloc] initWithFrame:CGRectMake(0, 20, SCREEN_WIDTH, 44)];
        _navBarView.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:_navBarView];
        
        UIImageView *lineView = [UIImageView new];
        lineView.backgroundColor = GLobalLineColor;
        [_navBarView addSubview:lineView];
        
        [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.height.mas_equalTo(0.5);
            make.left.right.bottom.equalTo(_navBarView);
        }];
    }
    return  _navBarView;
}

-(UILabel *)titleLabel
{
    if (_titleLabel == nil)
    {
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.textColor = RGB_SAME(51);
        _titleLabel.text = @"更多病例";
        _titleLabel.font = [UIFont systemFontOfSize:18];
        [self.navBarView addSubview:_titleLabel];
        
        [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.equalTo(self.navBarView);
        }];
    }
    return _titleLabel;
}

-(UIButton *)backBtn
{
    if (_backBtn == nil)
    {
        _backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [_backBtn setBackgroundImage:[UIImage imageNamed:@"back_normal"] forState:UIControlStateNormal];
        [_backBtn setBackgroundImage:[UIImage imageNamed:@"back_highlight"] forState:UIControlStateHighlighted];
        [_backBtn sizeToFit];
        [_backBtn addTarget:self action:@selector(backBtnDidClick) forControlEvents:UIControlEventTouchUpInside];
        [self.navBarView addSubview:_backBtn];
        
        [_backBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.navBarView);
            make.left.equalTo(self.navBarView).offset(10);
        }];
    }
    return _backBtn;
}



- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"更多病例";
    self.view.backgroundColor = [UIColor whiteColor];
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;
    self.navigationController.navigationBar.barTintColor = [UIColor whiteColor];
    
    UIButton *backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [backBtn setBackgroundImage:[UIImage imageNamed:@"back_normal"] forState:UIControlStateNormal];
    [backBtn setBackgroundImage:[UIImage imageNamed:@"back_highlight"] forState:UIControlStateHighlighted];
    [backBtn addTarget:self action:@selector(backBtnDidClick) forControlEvents:UIControlEventTouchDown];
    [backBtn sizeToFit];
    
    UIBarButtonItem *btn_left = [[UIBarButtonItem alloc] initWithCustomView:backBtn];
    
    UIBarButtonItem *negativeSpacer = [[UIBarButtonItem alloc]   initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace   target:nil action:nil];
    /**
     width为负数时，相当于btn向右移动width数值个像素，由于按钮本身和  边界间距为5pix，所以width设为-5时，间距正好调整为0；width为正数 时，正好相反，相当于往左移动width数值个像素
     */
    negativeSpacer.width = -8;
    self.navigationItem.leftBarButtonItems = [NSArray arrayWithObjects:negativeSpacer, btn_left, nil];
    
    [self setupUI];
    [self loadData];
}

-(void)setupUI
{
    [self statusBarView];
    [self navBarView];
    [self titleLabel];
    [self backBtn];
    [self titleView];
    [self collectionView];
}

-(void)loadData
{
    NSString *url = @"diseaseCategory/getAll.do";
    
    [[WPNetWorkManager sharedNetWorkManager] POST:url parameters:nil progress:^(NSProgress * _Nonnull uploadProgress) {
        
    } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        
        NSDictionary *responseDict = (NSDictionary *)responseObject;
        
        if ([responseDict[@"result"] isEqualToString:@"success"])
        {
            [responseDict[@"detail"] enumerateKeysAndObjectsUsingBlock:^(NSString  *key, NSDictionary  *obj, BOOL * _Nonnull stop) {
                
                if ([key isEqualToString:@"man"])
                {
                    WPManDiseaseModel *model = [WPManDiseaseModel modelWithDict:obj];
                    model.sex = YES;
                    self.manCell.model = model;
                    [self.models addObject:model];
                }
                else
                {
                    WPManDiseaseModel *model = [WPManDiseaseModel modelWithDict:obj];
                    model.sex = NO;
                    self.femaleCell.model = model;
                    [self.models addObject:model];
                }
                
            }];
        }
        else
        {
            [self showErrorInfoWithStatus:@"加载数据失败"];
        }
        
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        
        
    }];
}


-(UIView *)titleView
{
    if (_titleView == nil)
    {
        _titleView = [[UIView alloc] initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, 44)];
        _titleView.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:_titleView];
        
        self.maleCase = [self buttonWith:@"男性病例"];
        self.currentBtn = self.maleCase;
        self.currentBtn.selected = YES;
        self.femaleCase = [self buttonWith:@"女性病例"];
        self.kidCase = [self buttonWith:@"小孩病例"];
        
        [_titleView addSubview:self.maleCase];
        [_titleView addSubview:self.femaleCase];
        [_titleView addSubview:self.kidCase];
        
        CGFloat titleWidth = ([self.maleCase.titleLabel.text sizeWithMaxSize:CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX) font:15].width+2)*3;
        self.averageWidth = (SCREEN_WIDTH-titleWidth)/4;
        
        [self.maleCase mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(_titleView);
            make.left.equalTo(_titleView).offset(self.averageWidth);
        }];
        
        [self.femaleCase mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(_titleView);
            make.left.equalTo(self.maleCase.mas_right).offset(self.averageWidth);
        }];
        
        [self.kidCase mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(_titleView);
            make.right.equalTo(_titleView).offset(-self.averageWidth);
        }];
        
        self.sliderView = [[UIView alloc] initWithFrame:CGRectMake(self.averageWidth, _titleView.bounds.size.height-1.5, titleWidth/3.0, 1.5)];
        self.sliderView.backgroundColor = GlobalColor;
        [_titleView addSubview:self.sliderView];
        
        UIImageView *lineView = [UIImageView lineImageView];
        [_titleView addSubview:lineView];
        
        [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.height.mas_equalTo(0.5);
            make.left.right.bottom.equalTo(_titleView);
        }];
    }
    return _titleView;
}

-(UICollectionView *)collectionView
{
    if (_collectionView == nil)
    {
        UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
        CGFloat itemH = SCREEN_HEIGHT-CGRectGetMaxY(self.titleView.frame);
        layout.itemSize = CGSizeMake(SCREEN_WIDTH, itemH);
        layout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
        layout.minimumLineSpacing = 0;
        layout.minimumInteritemSpacing = 0;
        
        _collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.titleView.frame), SCREEN_WIDTH, itemH) collectionViewLayout:layout];
        _collectionView.backgroundColor = GlobalBgColor;
        _collectionView.delegate = self;
        _collectionView.dataSource = self;
        _collectionView.bounces = 0;
        _collectionView.pagingEnabled = YES;
        _collectionView.showsHorizontalScrollIndicator = NO;
        
        [_collectionView registerClass:[WPMaleCaseCVC class] forCellWithReuseIdentifier:@"WPMaleCaseCVC"];
        [_collectionView registerClass:[WPFemaleCaseCVC class] forCellWithReuseIdentifier:@"WPFemaleCaseCVC"];
        [_collectionView registerClass:[WPNewMaleCaseCellTwo class] forCellWithReuseIdentifier:@"WPNewMaleCaseCellTwo"];
        [_collectionView registerClass:[WPMoreDetailCell class] forCellWithReuseIdentifier:@"WPMoreDetailCell"];
        [self.view addSubview:_collectionView];
    }
    return _collectionView;
}

#pragma mark - 数据源方法
-(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
    return 3;
}

-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
    
    WPMoreDetailCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"WPMoreDetailCell" forIndexPath:indexPath];
    //    移除上一个控制器
    [cell.tvc.view removeFromSuperview];
    
    if (indexPath.item == 0)
    {
        WPMoreDetailMaleVC *tvc = [WPMoreDetailMaleVC new];
        //    传递控制器
        cell.tvc = tvc;
        tvc.order = 0;
        tvc.firstPositiveModelArr = self.MaleFirstPositiveModelArr;
        tvc.firstOppositeModelArr = self.MaleFirstOppositeModelArr;
        tvc.secondPositiveModelArr = self.MaleSecondPositiveModelArr;
        tvc.secondOppositeModelArr = self.MaleSecondOppositeModelArr;
        tvc.thirdPositiveModelArr = self.MaleThirdPositiveModelArr;
        tvc.fourthPositiveModelArr = self.MaleFourthPositiveModelArr;
        tvc.fifthPositiveModelArr = self.MaleFifthPositiveModelArr;
        tvc.sixthModelArr = self.MaleSixthModelArr;
        tvc.sevenModelArr = self.MaleSevenModelArr;
        tvc.eightModelArr = self.MaleEightModelArr;
        tvc.nonPartsArr = [NSArray array];
        //    如果一个控制器的View作为另一个控制器的子控件那么这个控制器也应该作为另一个控制器的子控制器
        
        [self addChildViewController:tvc];
    }
    else if(indexPath.item == 1)
    {
        WPMoreDetailFemaleVC *tvc = [WPMoreDetailFemaleVC new];
        
        //    传递控制器
        cell.tvc = tvc;
        tvc.order = 1;
        tvc.firstPositiveModelArr = self.femaleFirstPositiveModelArr;
        tvc.firstOppositeModelArr = self.femaleFirstOppositeModelArr;
        tvc.secondPositiveModelArr = self.femaleSecondPositiveModelArr;
        tvc.secondOppositeModelArr = self.femaleSecondOppositeModelArr;
        tvc.thirdPositiveModelArr = self.femaleThirdPositiveModelArr;
        tvc.fourthPositiveModelArr = self.MaleFourthPositiveModelArr;
        tvc.fifthPositiveModelArr = self.MaleFifthPositiveModelArr;
        tvc.nonPartsArr = [NSArray array];
        
        tvc.sixthModelArr = self.MaleSixthModelArr;
        tvc.sevenModelArr = self.MaleSevenModelArr;
        tvc.eightModelArr = self.MaleEightModelArr;
        //    如果一个控制器的View作为另一个控制器的子控件那么这个控制器也应该作为另一个控制器的子控制器
        [self addChildViewController:tvc];
    }
    else
    {
        WPMoreDetailkidVC *vc = [WPMoreDetailkidVC new];
        //    传递控制器
        cell.tvc = vc;
        //    如果一个控制器的View作为另一个控制器的子控件那么这个控制器也应该作为另一个控制器的子控制器
        [self addChildViewController:vc];
    }
    return cell;
}

-(void)setManCell:(WPMaleCaseCVC *)manCell
{
    _manCell = manCell;
    for (WPManDiseaseModel *model in self.models)
    {
        if (model.sex)
        {
            manCell.model = model;
            break;
        }
    }
}

-(void)setFemaleCell:(WPFemaleCaseCVC *)femaleCell
{
    _femaleCell = femaleCell;
    for (WPManDiseaseModel *model in self.models)
    {
        if (!model.sex)
        {
            femaleCell.model = model;
            break;
        }
    }
    
}

-(void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
    NSInteger indexPage = scrollView.contentOffset.x/scrollView.bounds.size.width;
    
    if (indexPage == 0)
    {
        [self titleBtnDidClick:self.maleCase];
    }
    else if(indexPage == 1)
    {
        [self titleBtnDidClick:self.femaleCase];
    }
    else
    {
        [self titleBtnDidClick:self.kidCase];
    }
}

-(WPBtnNoHighLight *)buttonWith:(NSString *)title
{
    WPBtnNoHighLight *btn = [WPBtnNoHighLight buttonWithType:UIButtonTypeCustom];
    [btn setTitle:title forState:UIControlStateNormal];
    [btn setTitleColor:GloballightFontColor forState:UIControlStateNormal];
    [btn setTitleColor:GLobalFontColor forState:UIControlStateSelected];
    [btn addTarget:self action:@selector(titleBtnDidClick:) forControlEvents:UIControlEventTouchDown];
    btn.titleLabel.font = [UIFont systemFontOfSize:15];
    
    return btn;
}

-(void)titleBtnDidClick:(WPBtnNoHighLight *)btn
{
    if (self.currentBtn == btn)
    {
        return ;
    }
    self.currentBtn.selected = NO;
    self.currentBtn = btn;
    self.currentBtn.selected = YES;
    
    if (btn == self.maleCase)
    {
        [UIView animateWithDuration:sliderViewAnimationTime animations:^{
            
            self.sliderView.transform = CGAffineTransformIdentity;
        }];
        
        [self.collectionView setContentOffset:CGPointMake(0, 0) animated:YES];
    }
    else if(btn == self.femaleCase)
    {
        [UIView animateWithDuration:sliderViewAnimationTime animations:^{
            
            self.sliderView.transform = CGAffineTransformMakeTranslation(CGRectGetMinX(self.femaleCase.frame)-self.averageWidth, 0);
        }];
        
        [self.collectionView setContentOffset:CGPointMake(SCREEN_WIDTH, 0) animated:YES];
    }
    else
    {
        [UIView animateWithDuration:sliderViewAnimationTime animations:^{
            
            self.sliderView.transform = CGAffineTransformMakeTranslation(CGRectGetMinX(self.kidCase.frame)-self.averageWidth, 0);
        }];
        
        [self.collectionView setContentOffset:CGPointMake(SCREEN_WIDTH*2, 0) animated:YES];
    }
}

-(NSMutableArray *)models
{
    if (_models == nil)
    {
        _models = [NSMutableArray array];
    }
    return _models;
}

//男性部位疾病
-(NSArray *)MaleFirstPositiveModelArr
{
    if (_MaleFirstPositiveModelArr == nil)
    {
        WPBodyPartDiseaseModel *model0 = [WPBodyPartDiseaseModel modelWithName:@"头发" rect:CGRectMake(64, 18, 83.5, 24)];
        WPBodyPartDiseaseModel *model1 = [WPBodyPartDiseaseModel modelWithName:@"头颅" rect:CGRectMake(175.5, 23, 34, 17)];
        WPBodyPartDiseaseModel *model2 = [WPBodyPartDiseaseModel modelWithName:@"眼睛" rect:CGRectMake(109, 46, 39.5, 15)];
        WPBodyPartDiseaseModel *model3 = [WPBodyPartDiseaseModel modelWithName:@"眼睛" rect:CGRectMake(167, 42, 33.5, 16.5)];
        WPBodyPartDiseaseModel *model4 = [WPBodyPartDiseaseModel modelWithName:@"鼻子" rect:CGRectMake(119.5,57.5,20,13)];
        WPBodyPartDiseaseModel *model5 = [WPBodyPartDiseaseModel modelWithName:@"鼻子" rect:CGRectMake(159.5,67.5,35.5,17.5)];
        WPBodyPartDiseaseModel *model6 = [WPBodyPartDiseaseModel modelWithName:@"耳朵" rect:CGRectMake(48,51,64,26.5)];
        WPBodyPartDiseaseModel *model7 = [WPBodyPartDiseaseModel modelWithName:@"耳朵" rect:CGRectMake(149,49.5,85,25)];
        WPBodyPartDiseaseModel *model8 = [WPBodyPartDiseaseModel modelWithName:@"嘴巴" rect:CGRectMake(114.5,70.5,29.5,14.5)];
        WPBodyPartDiseaseModel *model9 = [WPBodyPartDiseaseModel modelWithName:@"嘴巴" rect:CGRectMake(68.5,82,34.5,17)];
        WPBodyPartDiseaseModel *model10 = [WPBodyPartDiseaseModel modelWithName:@"皮肤" rect:CGRectMake(25,104.5,117,33)];
         WPBodyPartDiseaseModel *model11 = [WPBodyPartDiseaseModel modelWithName:@"面部" rect:CGRectMake(180,98,36,17)];
        WPBodyPartDiseaseModel *model12 = [WPBodyPartDiseaseModel modelWithName:@"胸部" rect:CGRectMake(87.5,142,154,45)];
        WPBodyPartDiseaseModel *model13 = [WPBodyPartDiseaseModel modelWithName:@"胸部" rect:CGRectMake(192,159,34.5,17)];
        WPBodyPartDiseaseModel *model14 = [WPBodyPartDiseaseModel modelWithName:@"上肢" rect:CGRectMake(8,162,75,54)];
//        WPBodyPartDiseaseModel *model15 = [WPBodyPartDiseaseModel modelWithName:@"腹部" rect:CGRectMake(91,173,78,35)];
        WPBodyPartDiseaseModel *model16 = [WPBodyPartDiseaseModel modelWithName:@"腹部" rect:CGRectMake(96,195.5,140.5,29)];
        WPBodyPartDiseaseModel *model17 = [WPBodyPartDiseaseModel modelWithName:@"腰部" rect:CGRectMake(13,226.5,34,18)];
        WPBodyPartDiseaseModel *model18 = [WPBodyPartDiseaseModel modelWithName:@"生殖部" rect:CGRectMake(92,237,82,40)];
        WPBodyPartDiseaseModel *model19 = [WPBodyPartDiseaseModel modelWithName:@"生殖部" rect:CGRectMake(193.5,294.5,43,19)];
        WPBodyPartDiseaseModel *model20 = [WPBodyPartDiseaseModel modelWithName:@"盆腔" rect:CGRectMake(17.5,296,34,17)];
        WPBodyPartDiseaseModel *model22 = [WPBodyPartDiseaseModel modelWithName:@"下肢" rect:CGRectMake(21,352,170,94)];
        
        model10.type = @"partsName";
        model12.type = @"partsName";
        model13.type = @"partsName";
        model14.type = @"partsName";
        model16.type = @"partsName";
        model17.type = @"partsName";
        model18.type = @"partsName";
        model19.type = @"partsName";
        model20.type = @"partsName";
        model22.type = @"partsName";
        
        _MaleFirstPositiveModelArr = [NSArray arrayWithObjects:model0,model1,model2,model3,model4,model5,model6,model7,model8,model9,model10,model11,model12,model13,model14,model16,model17,model18,model19,model20,model22, nil];
    }
    return _MaleFirstPositiveModelArr;
}

-(NSArray *)MaleFirstOppositeModelArr
{
    if (_MaleFirstOppositeModelArr == nil)
    {
        WPBodyPartDiseaseModel *model1 = [WPBodyPartDiseaseModel modelWithName:@"颈部" rect:CGRectMake(115.5, 56.5, 92, 28)];
        WPBodyPartDiseaseModel *model2 = [WPBodyPartDiseaseModel modelWithName:@"背部" rect:CGRectMake(107,160,141,40)];
        WPBodyPartDiseaseModel *model3 = [WPBodyPartDiseaseModel modelWithName:@"全身" rect:CGRectMake(3.5,113.5,34,18)];
        WPBodyPartDiseaseModel *model4 = [WPBodyPartDiseaseModel modelWithName:@"臀部" rect:CGRectMake(0,216.5,181,50)];
        
        model1.type = @"partsName";
        model2.type = @"partsName";
        model3.type = @"partsName";
        model4.type = @"partsName";

        _MaleFirstOppositeModelArr = [NSArray arrayWithObjects:model1,model2,model3,model4, nil];
    }
    return _MaleFirstOppositeModelArr;
}

-(NSArray *)MaleSecondPositiveModelArr
{
    if (_MaleSecondPositiveModelArr == nil)
    {
        WPBodyPartDiseaseModel *model1 = [WPBodyPartDiseaseModel modelWithName:@"肺脏" rect:CGRectMake(21.5,113,33.5,17)];
        WPBodyPartDiseaseModel *model2 = [WPBodyPartDiseaseModel modelWithName:@"肺脏" rect:CGRectMake(74,120,36.5,60.5)];
        WPBodyPartDiseaseModel *model3 = [WPBodyPartDiseaseModel modelWithName:@"肺脏" rect:CGRectMake(141,108.5,34.5,55)];
        WPBodyPartDiseaseModel *model4 = [WPBodyPartDiseaseModel modelWithName:@"气管" rect:CGRectMake(188,101,34,17)];
         WPBodyPartDiseaseModel *model5 = [WPBodyPartDiseaseModel modelWithName:@"气管" rect:CGRectMake(106,92.5,26,16.5)];
        WPBodyPartDiseaseModel *model6 = [WPBodyPartDiseaseModel modelWithName:@"心脏" rect:CGRectMake(11,161.5,33,16.5)];
        WPBodyPartDiseaseModel *model7 = [WPBodyPartDiseaseModel modelWithName:@"心脏" rect:CGRectMake(114.5,142,27,37)];
        WPBodyPartDiseaseModel *model8 = [WPBodyPartDiseaseModel modelWithName:@"肝" rect:CGRectMake(8,202,34,17)];
        WPBodyPartDiseaseModel *model9 = [WPBodyPartDiseaseModel modelWithName:@"肝" rect:CGRectMake(94,181.5,41.5,22)];
        WPBodyPartDiseaseModel *model10 = [WPBodyPartDiseaseModel modelWithName:@"胃" rect:CGRectMake(111.5,203.5,43,22)];
         WPBodyPartDiseaseModel *model11 = [WPBodyPartDiseaseModel modelWithName:@"胃" rect:CGRectMake(204.5,186,33,17.5)];
        WPBodyPartDiseaseModel *model12 = [WPBodyPartDiseaseModel modelWithName:@"脾" rect:CGRectMake(210.5,153,34,17)];
        WPBodyPartDiseaseModel *model13 = [WPBodyPartDiseaseModel modelWithName:@"胆囊" rect:CGRectMake(0.5,229,34,17)];
        WPBodyPartDiseaseModel *model14 = [WPBodyPartDiseaseModel modelWithName:@"胰腺" rect:CGRectMake(192,224,34,17)];
        WPBodyPartDiseaseModel *model15 = [WPBodyPartDiseaseModel modelWithName:@"大肠" rect:CGRectMake(203.5,265,34,17)];
        WPBodyPartDiseaseModel *model16 = [WPBodyPartDiseaseModel modelWithName:@"小肠" rect:CGRectMake(0.5,268,34,17)];
        WPBodyPartDiseaseModel *model17 = [WPBodyPartDiseaseModel modelWithName:@"盲肠" rect:CGRectMake(14.5,297.5,34,17)];
         WPBodyPartDiseaseModel *model18 = [WPBodyPartDiseaseModel modelWithName:@"盲肠" rect:CGRectMake(73,276.5,19,22.5)];
        WPBodyPartDiseaseModel *model19 = [WPBodyPartDiseaseModel modelWithName:@"阑尾" rect:CGRectMake(204,302.5,34,18)];
        WPBodyPartDiseaseModel *model20 = [WPBodyPartDiseaseModel modelWithName:@"膀胱" rect:CGRectMake(175.5,331,34,17)];
        WPBodyPartDiseaseModel *model21 = [WPBodyPartDiseaseModel modelWithName:@"膀胱" rect:CGRectMake(104,322,33,23.5)];
        WPBodyPartDiseaseModel *model22 = [WPBodyPartDiseaseModel modelWithName:@"咽喉" rect:CGRectMake(105,56.5,94,36)];
        
        _MaleSecondPositiveModelArr = [NSArray arrayWithObjects:model1,model2,model3,model4,model5,model6,model7,model8,model9,model10,model11,model12,model13,model14,model15,model16,model17,model18,model19,model20,model21,model22, nil];
    }
    return _MaleSecondPositiveModelArr;
}

-(NSArray *)MaleSecondOppositeModelArr
{
    if (_MaleSecondOppositeModelArr == nil)
    {
        WPBodyPartDiseaseModel *model1 = [WPBodyPartDiseaseModel modelWithName:@"肾脏" rect:CGRectMake(83,214,166,46)];
        WPBodyPartDiseaseModel *model2 = [WPBodyPartDiseaseModel modelWithName:@"尿道" rect:CGRectMake(10,254.5,98.5,33)];
        WPBodyPartDiseaseModel *model3 = [WPBodyPartDiseaseModel modelWithName:@"输精管" rect:CGRectMake(129,257,119,37)];
        WPBodyPartDiseaseModel *model4 = [WPBodyPartDiseaseModel modelWithName:@"精囊" rect:CGRectMake(21.5,309,34,17.5)];
        WPBodyPartDiseaseModel *model5 = [WPBodyPartDiseaseModel modelWithName:@"阴茎" rect:CGRectMake(16,358.5,34,17)];
        WPBodyPartDiseaseModel *model6 = [WPBodyPartDiseaseModel modelWithName:@"睾丸" rect:CGRectMake(104,372.5,131,41)];
        WPBodyPartDiseaseModel *model7 = [WPBodyPartDiseaseModel modelWithName:@"前列腺" rect:CGRectMake(174,337,45,19)];
        
        _MaleSecondOppositeModelArr = [NSArray arrayWithObjects:model1,model2,model3,model4,model5,model6,model7, nil];
    }
    return _MaleSecondOppositeModelArr;
}

-(NSArray *)MaleThirdPositiveModelArr
{
    if (_MaleThirdPositiveModelArr == nil)
    {
        WPBodyPartDiseaseModel *model1 = [WPBodyPartDiseaseModel modelWithName:@"咽喉" rect:CGRectMake(198,93,33,17)];
        WPBodyPartDiseaseModel *model2 = [WPBodyPartDiseaseModel modelWithName:@"咽喉" rect:CGRectMake(112.5,84,28.5,24)];
//        WPBodyPartDiseaseModel *model3 = [WPBodyPartDiseaseModel modelWithName:@"甲状软骨" rect:CGRectMake(9,95,51.5,16.5)];
//        WPBodyPartDiseaseModel *model4 = [WPBodyPartDiseaseModel modelWithName:@"甲状软骨" rect:CGRectMake(113,109,25.5,20)];
//        WPBodyPartDiseaseModel *model5 = [WPBodyPartDiseaseModel modelWithName:@"环状软骨" rect:CGRectMake(184,133.5,53,17)];
//        WPBodyPartDiseaseModel *model6 = [WPBodyPartDiseaseModel modelWithName:@"环状软骨" rect:CGRectMake(111,127.5,31,28)];
        WPBodyPartDiseaseModel *model7 = [WPBodyPartDiseaseModel modelWithName:@"气管" rect:CGRectMake(30,138.5,34,17.5)];
        WPBodyPartDiseaseModel *model8 = [WPBodyPartDiseaseModel modelWithName:@"气管" rect:CGRectMake(114.5,146.5,21,40.5)];
        WPBodyPartDiseaseModel *model9 = [WPBodyPartDiseaseModel modelWithName:@"肺脏" rect:CGRectMake(206.5,217,33.5,17.5)];
        WPBodyPartDiseaseModel *model10 = [WPBodyPartDiseaseModel modelWithName:@"肺脏" rect:CGRectMake(146,179.5,47,70)];
        WPBodyPartDiseaseModel *model11 = [WPBodyPartDiseaseModel modelWithName:@"支气管" rect:CGRectMake(11,238,48,15.5)];
        WPBodyPartDiseaseModel *model12 = [WPBodyPartDiseaseModel modelWithName:@"支气管" rect:CGRectMake(71.5,182,50,60)];
        
        _MaleThirdPositiveModelArr = [NSArray arrayWithObjects:model1,model2,model7,model8,model9,model10,model11,model12, nil];
    }
    return _MaleThirdPositiveModelArr;
}

-(NSArray *)MaleFourthPositiveModelArr
{
    if (_MaleFourthPositiveModelArr == nil)
    {
        WPBodyPartDiseaseModel *model1 = [WPBodyPartDiseaseModel modelWithName:@"口腔" rect:CGRectMake(20,62,34,17)];
        WPBodyPartDiseaseModel *model2 = [WPBodyPartDiseaseModel modelWithName:@"口腔" rect:CGRectMake(97,49,63,29)];
        WPBodyPartDiseaseModel *model3 = [WPBodyPartDiseaseModel modelWithName:@"咽喉" rect:CGRectMake(203,65,34,17)];
        WPBodyPartDiseaseModel *model4 = [WPBodyPartDiseaseModel modelWithName:@"咽喉" rect:CGRectMake(110,79,37,23)];
        WPBodyPartDiseaseModel *model5 = [WPBodyPartDiseaseModel modelWithName:@"食道" rect:CGRectMake(31,118.5,34,17)];
        WPBodyPartDiseaseModel *model6 = [WPBodyPartDiseaseModel modelWithName:@"食道" rect:CGRectMake(117.5,103,22.5,102)];
        WPBodyPartDiseaseModel *model7 = [WPBodyPartDiseaseModel modelWithName:@"肝脏" rect:CGRectMake(27,199,34,17)];
        WPBodyPartDiseaseModel *model8 = [WPBodyPartDiseaseModel modelWithName:@"肝脏" rect:CGRectMake(86,211,55,30)];
        WPBodyPartDiseaseModel *model9 = [WPBodyPartDiseaseModel modelWithName:@"胃" rect:CGRectMake(214,179,34,17)];
        WPBodyPartDiseaseModel *model10 = [WPBodyPartDiseaseModel modelWithName:@"胃" rect:CGRectMake(125,240.5,41,19)];
        WPBodyPartDiseaseModel *model11 = [WPBodyPartDiseaseModel modelWithName:@"胆囊" rect:CGRectMake(27,246,34,17)];
        WPBodyPartDiseaseModel *model12 = [WPBodyPartDiseaseModel modelWithName:@"十二指肠" rect:CGRectMake(195,259.5,54,18)];
        WPBodyPartDiseaseModel *model13 = [WPBodyPartDiseaseModel modelWithName:@"胰腺" rect:CGRectMake(200,232,34,17)];
        WPBodyPartDiseaseModel *model14 = [WPBodyPartDiseaseModel modelWithName:@"大肠" rect:CGRectMake(26.5,279.5,34,17)];
        WPBodyPartDiseaseModel *model15 = [WPBodyPartDiseaseModel modelWithName:@"大肠" rect:CGRectMake(87,257,68,21.5)];
        WPBodyPartDiseaseModel *model16 = [WPBodyPartDiseaseModel modelWithName:@"小肠" rect:CGRectMake(189,310.5,34,17)];
        WPBodyPartDiseaseModel *model17 = [WPBodyPartDiseaseModel modelWithName:@"小肠" rect:CGRectMake(97,277.5,71.5,43.5)];
        WPBodyPartDiseaseModel *model18 = [WPBodyPartDiseaseModel modelWithName:@"盲肠" rect:CGRectMake(33.5,318,75.5,19)];
        WPBodyPartDiseaseModel *model19 = [WPBodyPartDiseaseModel modelWithName:@"阑尾" rect:CGRectMake(47,348,34,17)];
        WPBodyPartDiseaseModel *model20 = [WPBodyPartDiseaseModel modelWithName:@"肛门" rect:CGRectMake(187,353.5,34,17)];
        WPBodyPartDiseaseModel *model21 = [WPBodyPartDiseaseModel modelWithName:@"肛门" rect:CGRectMake(120.5,333.5,33,29)];
        
        _MaleFourthPositiveModelArr = [NSArray arrayWithObjects:model1,model2,model3,model4,model5,model6,model7,model8,model9,model10,model11,model12,model13,model14,model15,model16,model17,model18,model19,model20,model21, nil];
    }
    return _MaleFourthPositiveModelArr;
}

-(NSArray *)MaleFifthPositiveModelArr
{
    if (_MaleFifthPositiveModelArr == nil)
    {
        WPBodyPartDiseaseModel *model1 = [WPBodyPartDiseaseModel modelWithName:@"心脏" rect:CGRectMake(19,118.5,34,17)];
        WPBodyPartDiseaseModel *model2 = [WPBodyPartDiseaseModel modelWithName:@"心脏" rect:CGRectMake(103,130.5,37,25)];
        WPBodyPartDiseaseModel *model3 = [WPBodyPartDiseaseModel modelWithName:@"毛细血管" rect:CGRectMake(120,109.5,22,22)];
        WPBodyPartDiseaseModel *model4 = [WPBodyPartDiseaseModel modelWithName:@"毛细血管" rect:CGRectMake(182,101,34,17)];
        WPBodyPartDiseaseModel *model5 = [WPBodyPartDiseaseModel modelWithName:@"动脉" rect:CGRectMake(14,221.5,34,17)];
        WPBodyPartDiseaseModel *model6 = [WPBodyPartDiseaseModel modelWithName:@"动脉" rect:CGRectMake(89,164.5,32,32)];
        WPBodyPartDiseaseModel *model7 = [WPBodyPartDiseaseModel modelWithName:@"静脉" rect:CGRectMake(186,197.5,34,17)];
        WPBodyPartDiseaseModel *model8 = [WPBodyPartDiseaseModel modelWithName:@"血液" rect:CGRectMake(19,166,34,17)];
        
        _MaleFifthPositiveModelArr = [NSArray arrayWithObjects:model1,model2,model3,model4,model5,model6,model7,model8, nil];
    }
    return _MaleFifthPositiveModelArr;
}

-(NSArray *)MaleSevenModelArr
{
    if (_MaleSevenModelArr == nil)
    {
        CGFloat imageScale = 5.0/11.0;
        CGFloat imageH = (SCREEN_HEIGHT-108)-8*kHeightScale;
        CGFloat imageW = imageH * imageScale;
        
        WPBodyPartDiseaseModel *model0 = [WPBodyPartDiseaseModel modelWithName:@"肌肉系统" rect:CGRectMake(0, 0, imageW, imageH)];
        model0.type = @"systemName";
        
        _MaleSevenModelArr = [NSArray arrayWithObjects:model0, nil];
    }
    return  _MaleSevenModelArr;
}

-(NSArray *)MaleSixthModelArr
{
    if (_MaleSixthModelArr == nil)
    {
        CGFloat imageScale = 5.0/11.0;
        CGFloat imageH = (SCREEN_HEIGHT-108)-8*kHeightScale;
        CGFloat imageW = imageH * imageScale;
        
        WPBodyPartDiseaseModel *model0 = [WPBodyPartDiseaseModel modelWithName:@"神经系统" rect:CGRectMake(0, 0, imageW, imageH)];
        model0.type = @"systemName";
        
        _MaleSixthModelArr = [NSArray arrayWithObjects:model0, nil];
    }
    return  _MaleSixthModelArr;
}

-(NSArray *)MaleEightModelArr
{
    if (_MaleEightModelArr == nil)
    {
        CGFloat imageScale = 5.0/11.0;
        CGFloat imageH = (SCREEN_HEIGHT-108)-8*kHeightScale;
        CGFloat imageW = imageH * imageScale;
        
        WPBodyPartDiseaseModel *model0 = [WPBodyPartDiseaseModel modelWithName:@"骨骼系统" rect:CGRectMake(0, 0, imageW, imageH)];
        model0.type = @"systemName";
        
        _MaleEightModelArr = [NSArray arrayWithObjects:model0, nil];
    }
    return  _MaleEightModelArr;
}

-(NSArray *)femaleFirstPositiveModelArr
{
    if (_femaleFirstPositiveModelArr == nil)
    {
        WPBodyPartDiseaseModel *model0 = [WPBodyPartDiseaseModel modelWithName:@"头发" rect:CGRectMake(105, 39, 35, 17)];
        WPBodyPartDiseaseModel *model1 = [WPBodyPartDiseaseModel modelWithName:@"头发" rect:CGRectMake(70,36,43,24)];
        WPBodyPartDiseaseModel *model2 = [WPBodyPartDiseaseModel modelWithName:@"眼睛" rect:CGRectMake(161.5,58,33,15)];
        WPBodyPartDiseaseModel *model3 = [WPBodyPartDiseaseModel modelWithName:@"眼睛" rect:CGRectMake(105,66,42,14)];
        WPBodyPartDiseaseModel *model4 = [WPBodyPartDiseaseModel modelWithName:@"鼻子" rect:CGRectMake(153,86,33,17)];
        WPBodyPartDiseaseModel *model5 = [WPBodyPartDiseaseModel modelWithName:@"鼻子" rect:CGRectMake(117.5,77.5,17,15)];
        WPBodyPartDiseaseModel *model6 = [WPBodyPartDiseaseModel modelWithName:@"耳朵" rect:CGRectMake(47.5,69,60,19)];
        WPBodyPartDiseaseModel *model8 = [WPBodyPartDiseaseModel modelWithName:@"嘴巴" rect:CGRectMake(66.5,94,32,16)];
        WPBodyPartDiseaseModel *model9 = [WPBodyPartDiseaseModel modelWithName:@"嘴巴" rect:CGRectMake(111,91,31.5,12)];
        WPBodyPartDiseaseModel *model10 = [WPBodyPartDiseaseModel modelWithName:@"皮肤" rect:CGRectMake(35,131,31,15.5)];
        WPBodyPartDiseaseModel *model11 = [WPBodyPartDiseaseModel modelWithName:@"头颅" rect:CGRectMake(165,33,34,17)];
        WPBodyPartDiseaseModel *model12 = [WPBodyPartDiseaseModel modelWithName:@"面部" rect:CGRectMake(168,109,32,16)];
        WPBodyPartDiseaseModel *model13 = [WPBodyPartDiseaseModel modelWithName:@"皮肤" rect:CGRectMake(21,124,73,32.5)];
        WPBodyPartDiseaseModel *model14 = [WPBodyPartDiseaseModel modelWithName:@"胸部" rect:CGRectMake(94,149.5,76,42)];
        WPBodyPartDiseaseModel *model15 = [WPBodyPartDiseaseModel modelWithName:@"胸部" rect:CGRectMake(183,153,34,17)];
        WPBodyPartDiseaseModel *model16 = [WPBodyPartDiseaseModel modelWithName:@"上肢" rect:CGRectMake(25,163.5,60.5,35.5)];
        WPBodyPartDiseaseModel *model17 = [WPBodyPartDiseaseModel modelWithName:@"乳房" rect:CGRectMake(187,185,34,17)];
        WPBodyPartDiseaseModel *model18 = [WPBodyPartDiseaseModel modelWithName:@"腹部" rect:CGRectMake(92,198,67,29.5)];
        WPBodyPartDiseaseModel *model19 = [WPBodyPartDiseaseModel modelWithName:@"腹部" rect:CGRectMake(166,210.5,34,17)];
        WPBodyPartDiseaseModel *model20 = [WPBodyPartDiseaseModel modelWithName:@"腰部" rect:CGRectMake(28,229,136,24)];
        WPBodyPartDiseaseModel *model21 = [WPBodyPartDiseaseModel modelWithName:@"生殖部" rect:CGRectMake(82,254,145,36.5)];
        WPBodyPartDiseaseModel *model22 = [WPBodyPartDiseaseModel modelWithName:@"盆腔" rect:CGRectMake(27.5,291.5,34,17)];
        WPBodyPartDiseaseModel *model23 = [WPBodyPartDiseaseModel modelWithName:@"下肢" rect:CGRectMake(42,410,34,17)];
        WPBodyPartDiseaseModel *model24 = [WPBodyPartDiseaseModel modelWithName:@"下肢" rect:CGRectMake(85.5,338,86,132)];
        
        model10.type = @"partsName";
        model13.type = @"partsName";
        model14.type = @"partsName";
        model15.type = @"partsName";
        model16.type = @"partsName";
        model17.type = @"partsName";
        model18.type = @"partsName";
        model19.type = @"partsName";
        model20.type = @"partsName";
        model21.type = @"partsName";
        model22.type = @"partsName";
        model23.type = @"partsName";
        model24.type = @"partsName";
        
        _femaleFirstPositiveModelArr = [NSArray arrayWithObjects:model0,model1,model2,model3,model4,model5,model6,model8,model9,model10,model11,model12,model13,model14,model15,model16,model17,model18,model19,model20,model21,model22,model23,model24, nil];
    }
    return _femaleFirstPositiveModelArr;
}

-(NSArray *)femaleFirstOppositeModelArr
{
    if (_femaleFirstOppositeModelArr == nil)
    {
        WPBodyPartDiseaseModel *model1 = [WPBodyPartDiseaseModel modelWithName:@"颈部" rect:CGRectMake(110,76.5,85.5,34)];
        WPBodyPartDiseaseModel *model2 = [WPBodyPartDiseaseModel modelWithName:@"全身" rect:CGRectMake(28.5,117,154,57)];
        WPBodyPartDiseaseModel *model3 = [WPBodyPartDiseaseModel modelWithName:@"背部" rect:CGRectMake(90,181,135,48)];
        WPBodyPartDiseaseModel *model4 = [WPBodyPartDiseaseModel modelWithName:@"臀部" rect:CGRectMake(25,243,148.5,45)];
        
        model1.type = @"partsName";
        model2.type = @"partsName";
        model3.type = @"partsName";
        model4.type = @"partsName";
        
        _femaleFirstOppositeModelArr = [NSArray arrayWithObjects:model1,model2,model3,model4, nil];
    }
    return _femaleFirstOppositeModelArr;
}

-(NSArray *)femaleSecondPositiveModelArr
{
    if (_femaleSecondPositiveModelArr == nil)
    {
        WPBodyPartDiseaseModel *model1 = [WPBodyPartDiseaseModel modelWithName:@"肺脏" rect:CGRectMake(17.5,114,34,17)];
        WPBodyPartDiseaseModel *model2 = [WPBodyPartDiseaseModel modelWithName:@"肺脏" rect:CGRectMake(78,115,38,59)];
        WPBodyPartDiseaseModel *model3 = [WPBodyPartDiseaseModel modelWithName:@"肺脏" rect:CGRectMake(145,115,28,42)];
        WPBodyPartDiseaseModel *model4 = [WPBodyPartDiseaseModel modelWithName:@"气管" rect:CGRectMake(187,97,35,16.5)];
        WPBodyPartDiseaseModel *model5 = [WPBodyPartDiseaseModel modelWithName:@"气管" rect:CGRectMake(113,89,20,20.5)];
        WPBodyPartDiseaseModel *model6 = [WPBodyPartDiseaseModel modelWithName:@"心脏" rect:CGRectMake(6.5,164,33,16.5)];
        WPBodyPartDiseaseModel *model7 = [WPBodyPartDiseaseModel modelWithName:@"心脏" rect:CGRectMake(120,152,26,33)];
        WPBodyPartDiseaseModel *model8 = [WPBodyPartDiseaseModel modelWithName:@"肝脏" rect:CGRectMake(4,209,34,17)];
        WPBodyPartDiseaseModel *model9 = [WPBodyPartDiseaseModel modelWithName:@"肝脏" rect:CGRectMake(97.5,188.5,44.5,19)];
        WPBodyPartDiseaseModel *model10 = [WPBodyPartDiseaseModel modelWithName:@"胃" rect:CGRectMake(114.5,209.5,41.5,23)];
        WPBodyPartDiseaseModel *model11 = [WPBodyPartDiseaseModel modelWithName:@"胃" rect:CGRectMake(205.5,194.5,34,17)];
        WPBodyPartDiseaseModel *model12 = [WPBodyPartDiseaseModel modelWithName:@"脾脏" rect:CGRectMake(214,160.5,34,17)];
        WPBodyPartDiseaseModel *model13 = [WPBodyPartDiseaseModel modelWithName:@"胆囊" rect:CGRectMake(14,241.5,34,17)];
        WPBodyPartDiseaseModel *model14 = [WPBodyPartDiseaseModel modelWithName:@"胰腺" rect:CGRectMake(195,235.5,34,17)];
        WPBodyPartDiseaseModel *model15 = [WPBodyPartDiseaseModel modelWithName:@"大肠" rect:CGRectMake(212.5,284,34,17)];
        WPBodyPartDiseaseModel *model16 = [WPBodyPartDiseaseModel modelWithName:@"小肠" rect:CGRectMake(1.5,278.5,34,17)];
        WPBodyPartDiseaseModel *model17 = [WPBodyPartDiseaseModel modelWithName:@"盲肠" rect:CGRectMake(9.5,315.5,34,17)];
        WPBodyPartDiseaseModel *model18 = [WPBodyPartDiseaseModel modelWithName:@"盲肠" rect:CGRectMake(70,301.5,21.5,23.5)];
        WPBodyPartDiseaseModel *model19 = [WPBodyPartDiseaseModel modelWithName:@"阑尾" rect:CGRectMake(203.5,324,34,18)];
        WPBodyPartDiseaseModel *model20 = [WPBodyPartDiseaseModel modelWithName:@"膀胱" rect:CGRectMake(183.5,371,34,17)];
        WPBodyPartDiseaseModel *model21 = [WPBodyPartDiseaseModel modelWithName:@"膀胱" rect:CGRectMake(111.5,363,28,17)];
        WPBodyPartDiseaseModel *model22 = [WPBodyPartDiseaseModel modelWithName:@"咽喉" rect:CGRectMake(112.5,55,90,30)];
        WPBodyPartDiseaseModel *model23 = [WPBodyPartDiseaseModel modelWithName:@"大肠" rect:CGRectMake(80.5,238.5,84,24)];
        WPBodyPartDiseaseModel *model24 = [WPBodyPartDiseaseModel modelWithName:@"小肠" rect:CGRectMake(91.5,264.5,78.5,49)];
        WPBodyPartDiseaseModel *model25 = [WPBodyPartDiseaseModel modelWithName:@"阑尾" rect:CGRectMake(72.5,327,23,20)];
        WPBodyPartDiseaseModel *model26 = [WPBodyPartDiseaseModel modelWithName:@"子宫" rect:CGRectMake(39,384.5,34,17)];
        WPBodyPartDiseaseModel *model27 = [WPBodyPartDiseaseModel modelWithName:@"子宫" rect:CGRectMake(106.5,348,36,14)];
        WPBodyPartDiseaseModel *model28 = [WPBodyPartDiseaseModel modelWithName:@"阴道" rect:CGRectMake(181,396,34,17)];
        WPBodyPartDiseaseModel *model29 = [WPBodyPartDiseaseModel modelWithName:@"阴道" rect:CGRectMake(114.5,380.5,22,30)];
        WPBodyPartDiseaseModel *model30 = [WPBodyPartDiseaseModel modelWithName:@"子房" rect:CGRectMake(26,354.5,34,17)];
        
        _femaleSecondPositiveModelArr = [NSArray arrayWithObjects:model1,model2,model3,model4,model5,model6,model7,model8,model9,model10,model11,model12,model13,model14,model15,model16,model17,model18,model19,model20,model21,model22,model23,model24,model25,model26,model27,model28,model29,model30, nil];
    }
    return _femaleSecondPositiveModelArr;
}

-(NSArray *)femaleSecondOppositeModelArr
{
    if (_femaleSecondOppositeModelArr == nil)
    {
        WPBodyPartDiseaseModel *model1 = [WPBodyPartDiseaseModel modelWithName:@"肾脏" rect:CGRectMake(80.5,236.5,144,31)];
        WPBodyPartDiseaseModel *model2 = [WPBodyPartDiseaseModel modelWithName:@"尿道" rect:CGRectMake(89.5,272.5,147,30)];
        WPBodyPartDiseaseModel *model3 = [WPBodyPartDiseaseModel modelWithName:@"卵巢" rect:CGRectMake(19,344,34,17)];
        WPBodyPartDiseaseModel *model4 = [WPBodyPartDiseaseModel modelWithName:@"外阴" rect:CGRectMake(176.5,375,34,17)];
        WPBodyPartDiseaseModel *model6 = [WPBodyPartDiseaseModel modelWithName:@"输卵管" rect:CGRectMake(175,344.5,43,17)];
        WPBodyPartDiseaseModel *model7 = [WPBodyPartDiseaseModel modelWithName:@"肛门" rect:CGRectMake(13,374,114,40)];
        
        _femaleSecondOppositeModelArr = [NSArray arrayWithObjects:model1,model2,model3,model4,model6,model7, nil];
    }
    return _femaleSecondOppositeModelArr;
}

-(NSArray *)femaleThirdPositiveModelArr
{
    if (_femaleThirdPositiveModelArr == nil)
    {
        WPBodyPartDiseaseModel *model1 = [WPBodyPartDiseaseModel modelWithName:@"咽喉" rect:CGRectMake(198,93,34,17)];
        WPBodyPartDiseaseModel *model2 = [WPBodyPartDiseaseModel modelWithName:@"咽喉" rect:CGRectMake(112.5,84,29,24)];
        WPBodyPartDiseaseModel *model3 = [WPBodyPartDiseaseModel modelWithName:@"甲状软骨" rect:CGRectMake(9,95,51.5,17)];
        WPBodyPartDiseaseModel *model4 = [WPBodyPartDiseaseModel modelWithName:@"甲状软骨" rect:CGRectMake(113,109,25.5,20)];
        WPBodyPartDiseaseModel *model5 = [WPBodyPartDiseaseModel modelWithName:@"环状软骨" rect:CGRectMake(184,133.5,54,17)];
        WPBodyPartDiseaseModel *model6 = [WPBodyPartDiseaseModel modelWithName:@"环状软骨" rect:CGRectMake(111,127.5,31,18)];
        WPBodyPartDiseaseModel *model7 = [WPBodyPartDiseaseModel modelWithName:@"气管" rect:CGRectMake(30,138,34,17)];
        WPBodyPartDiseaseModel *model8 = [WPBodyPartDiseaseModel modelWithName:@"气管" rect:CGRectMake(114.5,146.5,21,40.5)];
        WPBodyPartDiseaseModel *model9 = [WPBodyPartDiseaseModel modelWithName:@"肺脏" rect:CGRectMake(206.5,217,34,17)];
        WPBodyPartDiseaseModel *model10 = [WPBodyPartDiseaseModel modelWithName:@"肺脏" rect:CGRectMake(146,179.5,47,70)];
        WPBodyPartDiseaseModel *model11 = [WPBodyPartDiseaseModel modelWithName:@"支气管" rect:CGRectMake(11,238,48,17)];
        WPBodyPartDiseaseModel *model12 = [WPBodyPartDiseaseModel modelWithName:@"支气管" rect:CGRectMake(71.5,182,50,60)];
        
        _femaleThirdPositiveModelArr = [NSArray arrayWithObjects:model1,model2,model3,model4,model5,model6,model7,model8,model9,model10,model11,model12, nil];
    }
    return _femaleThirdPositiveModelArr;
}



-(void)dealloc
{
    
}

-(void)backBtnDidClick
{
    [self.navigationController dismissViewControllerAnimated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
